<?php
defined('_JEXEC') or die('Restricted access');

?>
<div class='tab_content' id="tab_create_donvi">
	<div class='container-fluid margin10'>
			<div class='row-fluid'>
				<div class='widget widget-padding span12'>
					<div class='widget-header'>
						<i class="icon-plus"></i>
						<h5><?php echo JText::_('COM_KETNOI_CREATEDONVI') ?></h5>
					</div>
					<div class='widget-body'>
						<form method="post" action="index.php" name='form_create_donvi' id="form_create_donvi" class='form'>
						<div class='row-fluid'>
							<div class='span12'>
								<button type="submit" class='btn btn-primary'>
									<i class='icon-ok icon-white'></i>
									<?php echo JText::_("COM_KETNOI_SAVEBTN") ?>
								</button>
							</div>
						</div>
						
						
						<div class="row-fluid margin10">
							<div class='span12'>
								<div class="row-fluid">
									<div class='span12'>
										<div class="control-group">
											<label class="control-label" for="name">
												<?php echo JText::_("COM_KETNOI_CODE") ?>
												<em>*</em>
											</label>
											<div class="controls row-fluid">
												<input type='text' required='required' value='<?= $this->row->ma ?>' name='ma' class="span12"/>
												<?php if($this->id): ?>
					                       			<input type='hidden' id='oldma' value='<?= $this->row->ma ?>' /> 
					                       		<?php endif; ?>
											</div>
										</div>
									</div>
								</div>	
								<div class="row-fluid">
									<div class='span12'>
										<div class="control-group">
											<label>
												<?php echo JText::_("COM_KETNOI_DONVINAME") ?>
												<em>*</em>
											</label>
											<div class="controls row-fluid">
												<input value='<?= $this->row->ten ?>' type='text' required='required' name='ten' class="span12"/>
												<?php if($this->id): ?>
					                       			<input type='hidden' id='oldten' value='<?= $this->row->ten ?>' /> 
					                       		<?php endif; ?>
											</div>
										</div>
									</div>
								</div>	
								<div class="row-fluid">
									<div class='span12'>
										<div class="control-group">
											<label>
												<?php echo JText::_("COM_KETNOI_GHICHU") ?>
											
											</label>
											<div class="controls row-fluid">
												<textarea rows="4" cols="10" name='ghichu'><?php echo $this->row->ghichu ?></textarea>
											</div>
										</div>
									</div>									
								</div>
							</div>
						</div>
							<input type="hidden" name="option" value="com_ketnoi" />
							<input type="hidden" name="view" value="donvi" />
							<input type="hidden" name="task" value="donvi.save" />
							<input type="hidden" name="tmpl" value="raw" />
							<input type="hidden" name="quickcreate" value="<?= JRequest::getVar("quickcreate",0) ?>" />
							<input type="hidden" name="client_update" value="<?= JRequest::getVar("client_update","") ?>" />
							<?php if($this->id): ?>
							<input type="hidden" name="id" value="<?= $this->id ?>" />
							<?php endif; ?>
						</form>	
					</div>
					
				</div>
			</div>
		</div>
</div>
